package com.wicket.okrapp.integration.dto;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * @desc TargetContCheckItemStateDto
 * @使用场景
 */
@Data
public class TargetContCheckItemStateDto
  extends BaseDto
  implements Serializable {

  /**
   * 状态校验项ID
   */
  @ApiModelProperty("状态校验项ID")
  private String statusCheckItemId;

  /**
   * 检查项标识
   */
  @ApiModelProperty("检查项标识")
  private String checkItemCode;

  /**
   * 检查项名称
   */
  @ApiModelProperty("检查项名称 ")
  private String checkItemName;

  /**
   * 是否已完成 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否已完成")
  private String isComplete;

  /**
   * 检查项ID
   */
  @ApiModelProperty("检查项ID")
  private String checkItemId;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    TargetContCheckItemStateDto that = (TargetContCheckItemStateDto) o;
    return (
      statusCheckItemId == that.statusCheckItemId &&
      checkItemCode == that.checkItemCode &&
      checkItemName == that.checkItemName &&
      isComplete == that.isComplete &&
      checkItemId == that.checkItemId
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      statusCheckItemId,
      checkItemCode,
      checkItemName,
      isComplete,
      checkItemId
    );
  }

}
